@ECHO OFF

SET DOT=%~dp0\lib\dot\dot.exe
SET VCDEPEND=%~dp0\bin\Release\VCDepend.Console.exe

IF [%1] == [] ( 
	ECHO ERROR: Expected solution filename
	GOTO FAIL
)

IF [%2] == [] ( 
	ECHO ERROR: Expected solution configuration
	GOTO FAIL
)

REM IF [%3] == [] ( 
REM 	ECHO ERROR: Expected output filename
REM 	GOTO FAIL
REM )

SET SLNFILE=%1
SET SLNCFG=%2
REM SET OUTPUTFILENAME=%3

ECHO %SLNFILE%
ECHO %SLNCFG%
REM ECHO %OUTPUTFILENAME%

%VCDEPEND% %SLNFILE% %SLNCFG%
 REM | %DOT% -Tpng -o%OUTPUTFILENAME%
GOTO END

:FAIL
ECHO.
ECHO Usage:
ECHO vcdepend.bat ^<solution filename^> ^<solution configuration^> ^<output filename^>
ECHO.
ECHO Example:
ECHO vcdepend.bat MySolution.sln "Release|Win32" my-dependencies.png
ExIT /B 1

:END